package com.yang.design.create.singletonPattern;

/**
 * 单例模式-静态代码块(懒加载)
 */
public class Singleton_05 {
    private Singleton_05(){}

    private static class SingletonHandler{
        private static Singleton_05 INSTANCE = new Singleton_05();
    }

    public static Singleton_05 getInstance(){
        return SingletonHandler.INSTANCE;
    }
}
